﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using StationUpdate.Enty;

namespace StationUpdate
{
    public class SysData
    {
        /// <summary>
        /// 升级文件的绝对路径
        /// </summary>
        public static string updateFileName = "";
        /// <summary>
        /// 服务是否开启，默认false
        /// </summary>
        public static bool serverOpen = false;
        /// <summary>
        /// 硬件版本
        /// </summary>
        public static int HardwareVer = 0;
        /// <summary>
        /// 软件版本
        /// </summary>
        public static int SoftVer = 0;
        /// <summary>
        /// 一次发送多少个字节
        /// </summary>
        public static string OneSendSize = "800";
        /// <summary>
        /// 包头
        /// </summary>
        public static string PackageHeard = "6BB6";
        /// <summary>
        /// 集合临界区对象
        /// </summary>
        public static object objSyn = new object();
        /// <summary>
        /// 终端集体
        /// </summary>
        public static Dictionary<string, TermStation> dicTermStation = new Dictionary<string, TermStation>();
        /// <summary>
        /// 是否已启动了服务端
        /// </summary>
        public static bool isStartServer = false;
        /// <summary>
        /// web服务地址
        /// </summary>
        public static string webService;
        /// <summary>
        /// 端口
        /// </summary>
        public static string serverPort;
        /// <summary>
        /// key:终端Id, value:升级版本信息
        /// </summary>
        public static Dictionary<string, SjEnty> dicLcdSjEnty = new Dictionary<string, SjEnty>();
        /// <summary>
        /// 升级文件路径信息对象
        /// </summary>
        public static List<SjFileInfo> listSjFileInfo = new List<SjFileInfo>();
        /// <summary>
        /// 待下载列表
        /// </summary>
        public static Queue listDownFile = new Queue();
        /// <summary>
        /// web访问认证id
        /// </summary>
        public static string appId;
        /// <summary>
        /// web认证sec
        /// </summary>
        public static string appKey;


    }
}
